<!-- 工序汇报列表 -->
<template>
	<view class="newBody">
		<div>
			<navitop>
				<i class="iconfont icon-jiantou-copy" slot="left-slot" @click="outlot"></i>
				<span slot="center-slot">
					<h4>{{titles}}</h4>
				</span>
				<i slot="right-slot" class="iconfont icon-youcecaidan" @click="class_sort"></i>
			</navitop>
		</div>
		<view :style="'margin-top:' + nv_height"></view>
		
		<view class="report_list" @click="capacity">
			<view class="report_txt">1</view>
		</view>
		
	</view>
</template>

<script>
	import navitop from '@/components/common/navi-top'
	export default {
		data() {
			return {
				timeout: null,
				ProcessingNumber: '',
				ProductName: '',
				ProcessName: '',
				hgNumber: '',
				fgNumber: '',
				fpNumber: '',
				nv_height: '', //获取导航高度 
				titles: '工序汇报'
			}
		},

		components: {
			navitop,
		},

		onShow() {
			uni.$on('otherFun', (res) => {
				//加工单号
				if (res.index == 1) {
					this.ProcessingNumber = res.ProcessingNumber;
				}
			});
		},

		mounted() {
			this.nv_height = uni.getSystemInfoSync().statusBarHeight + 75 + 'px';
		},

		methods: {

			outlot() {
				uni.navigateTo({
					url: '/components/index-modules/Manufacturing/processCard'
				})
			},
			capacity() {
				uni.navigateTo({
					url: "/components/index-modules/Manufacturing/report-comm"
				})
			}
		}
	}
</script>

<style scoped lang="scss">
	.newBody {
		width: 750rpx;
		height: 100%;
	}
	.report_list {
		width: 95%;
		padding: 10px 0 10px 0;
		margin: auto;
		border-radius: 4px;
		margin-bottom: 10px;
		background-color: white;
		box-shadow:  0 2px 12px 0 rgba(0, 0, 0, 0.1);
	}
	.report_txt {
		padding: 0 0 0 30rpx;
	}

</style>
